<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
</head>  
<script>  

function doJavascript() {  
    var str = document.getElementById("text").value;  
    window.testWebMap.doJavascript2(str);  
}  
function doQt(str) {  
    document.getElementById("text").value=str;  
}  

</script>  
<body>  
<p>test qt call javascrip function</p>  
<input type="text" id="text" value=""/>  
<input type="button" value="button" onclick="doJavascript()"/>  
</body>  
</html> 